package com.mk.model.response;

import com.mk.model.entity.Resource;
import com.mk.model.entity.Role;
import com.mk.model.entity.User;

import java.util.List;
import java.util.Set;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 4:44 PM 3/13/18
 */
public class LoginResponse {

    private Long userId;
    private String token;
    private User user;
    private List<Role> roles;
    private List<Resource> reses;
    private Set<String> perms;

    public LoginResponse() {
    }

    public LoginResponse(Long userId, String token, User user, List<Role> roles,
                         List<Resource> reses, Set<String> perms) {
        this.userId = userId;
        this.token = token;
        this.user = user;
        this.roles = roles;
        this.reses = reses;
        this.perms = perms;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Resource> getReses() {
        return reses;
    }

    public void setReses(List<Resource> reses) {
        this.reses = reses;
    }

    public Set<String> getPerms() {
        return perms;
    }

    public void setPerms(Set<String> perms) {
        this.perms = perms;
    }
}
